{extend name="Layout/edit" /}
{block name="content"}
<div class="box">
    <div class="box-header">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:url('profile')}">个人资料</a></li>
            <li><a href="{:url('user.user/password_edit')}">密码设置</a></li>
        </ul>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div class="row">
            <div class="col-md-6">
                <!-- form start -->
                <form action="{:url('doSaveProfile')}" method="post" class="form-horizontal">
                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">姓名</label>
                            <div class="col-sm-10">
                                <input type="text" name="realname" class="form-control input-sm" placeholder="姓名" value="{$data.realname}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">手机号码</label>
                            <div class="col-sm-10">
                                <input type="text" name="mobile" class="form-control input-sm" placeholder="手机号码" value="{$data['mobile']}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">QQ号码</label>
                            <div class="col-sm-10">
                                <input type="text" name="qq" class="form-control input-sm" placeholder="QQ号码" value="{$data['qq']}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">微信号码</label>
                            <div class="col-sm-10">
                                <input type="text" name="wechat_id" class="form-control input-sm" placeholder="微信号码" value="{$data['wechat_id']}" />
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
                        <button type="submit" class="btn btn-primary pull-right">保存</button>
                    </div>
                    <!-- /.box-footer -->
                </form>
            </div>
        </div>
    </div>
    {/block}